package com.group.eams.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.eams.pojo.dto.SupplierQueryDto;
import com.group.eams.pojo.entity.Supplier;
import com.group.eams.pojo.vo.SupplierListVo;
import com.group.eams.service.SupplierService;
import com.group.eams.mapper.SupplierMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 恩哲欣
* @description 针对表【supplier(供应商管理)】的数据库操作Service实现
* @createDate 2024-10-29 16:09:34
*/
@Service
public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, Supplier>
implements SupplierService{

    @Autowired
    private SupplierMapper supplierMapper;

    @Override
    public Page<SupplierListVo> findByQueryDto(SupplierQueryDto supplierQueryDto) {
        Page<SupplierListVo> page = new Page<>(supplierQueryDto.getPage(), supplierQueryDto.getLimit());
        return supplierMapper.findByQueryDto(page,supplierQueryDto);
    }
}
